<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function restMap() {
            let areaMap = [
                { x: 1, y: 1, name: "p1" ,info:"食品专柜"},
                { x: 2, y: 1, name: "p2" },
                { x: 3, y: 1, name: "p3" },
                { x: 4, y: 1, name: "p4" },
                { x: 1, y: 3, name: "p5" },
                { x: 2, y: 3, name: "p6" },
                { x: 3, y: 3, name: "p7" },
                { x: 4, y: 3, name: "p8" },
                { x: 1, y: 5, name: "p9" },
                { x: 2, y: 5, name: "p10" },
                { x: 3, y: 5, name: "p11" },
                { x: 4, y: 5, name: "p12" },
                { x: 1, y: 7, name: "p13" },
                { x: 2, y: 7, name: "p14" },
                { x: 3, y: 7, name: "p15" },
                { x: 4, y: 7, name: "p16" },
                { x: 1, y: 9, name: "p17" },
                { x: 2, y: 9, name: "p18" },
                { x: 3, y: 9, name: "p19" },
                { x: 4, y: 9, name: "p20" },
                { x: 7, y: 1, name: "p21" },
                { x: 8, y: 1, name: "p22" },
                { x: 9, y: 1, name: "p23" },
                { x: 10, y: 1, name: "p24" },
                { x: 7, y: 3, name: "p25" },
                { x: 8, y: 3, name: "p26" },
                { x: 9, y: 3, name: "p27" },
                { x: 10, y: 3, name: "p28" },
                { x: 7, y: 5, name: "p29" },
                { x: 8, y: 5, name: "p30" },
                { x: 9, y: 5, name: "p31" },
                { x: 10, y: 5, name: "p32" },
                { x: 7, y: 7, name: "p33" },
                { x: 8, y: 7, name: "p34" },
                { x: 9, y: 7, name: "p35" },
                { x: 10, y: 7, name: "p36" },
                { x: 7, y: 9, name: "p37" },
                { x: 8, y: 9, name: "p38" },
                { x: 9, y: 9, name: "p39" },
                { x: 10, y: 9, name: "p40" }
            ]
            localStorage.setItem("map", JSON.stringify(areaMap))
        }
        function restArea() {
            let area = [
                { title: "食品专柜" },
                { title: "日用专柜" },
                { title: "酒水专柜" },
                { title: "玩具专柜" },
                { title: "零食专柜" },
                { title: "服饰专柜" }
            ]
            localStorage.setItem("area", JSON.stringify(area))
        }
        function restSysUser() {
            let sysUser = [
                { username: "admin", password: "admin", state: true, headImg: "user1.gif" },
                { username: "tom", password: "123456", state: true, headImg: "user1.gif" }
            ]
            localStorage.setItem("sysUser", JSON.stringify(sysUser))
        }
        function restAreaUser() {
            let areaUser = [
                { username: "aaaaaa", password: "111111", name: "Anderson", area: "食品专柜", email: "nesciunt@test.com", tel: "666-261-1617", headImg: "user2.jpg" },
                { username: "bbbbbb", password: "111111", name: "Borer", area: "日用专柜", email: "aspernatur@test.com", tel: "541-222-9925", headImg: "user3.jpg" },
                { username: "cccccc", password: "111111", name: "Kunze", area: "酒水专柜", email: "natus@test.com", tel: "214-316-3933", headImg: "user4.jpg" },
                { username: "dddddd", password: "111111", name: "Mayert", area: "玩具专柜", email: "ut@test.com", tel: "900-225-6866", headImg: "user5.jpg" },
                { username: "eeeeee", password: "111111", name: "Runolfsdottir", area: "零食专柜", email: "consequatur@test.com", tel: "541-728-8217", headImg: "user6.jpg" },
                { username: "ffffff", password: "111111", name: "Emmerich", area: "服饰专柜", email: "aspernatur@test.com", tel: "734-373-4103", headImg: "user7.jpg" }
            ]
            localStorage.setItem("areaUser", JSON.stringify(areaUser))
        }

        function restEquipment(){
            let equipment = [
                { no:"3189343114",name:"联合智能价签",model:"lhznk290",state:true,ip:"192.168.1.23",product:{
                    name:"原味高庄馒头2个装",
                    price:"8.80元/盒",
                    info1:"产地:江苏镇江",
                    info2:"规格:168g/盒",
                    no:"114062006345"
                }},
                { no:"5115300853",name:"联合智能价签",model:"lhznk290",state:true,ip:"192.168.1.16",product:{
                    name:"听装零度可乐汽水",
                    price:"3.00元/听",
                    info1:"产地:江苏镇江",
                    info2:"规格:330ML/听",
                    no:"695339250001"
                }},
                { no:"7374736580",name:"联合智能价签",model:"lhznk290",state:false,ip:"192.168.1.18",product:{
                    name:"舌里全麦面包0脂肪无油无蔗糖",
                    price:"19.90元/袋",
                    info1:"产地:河南省郑州市",
                    info2:"规格:1.305kg/袋",
                    no:"100008621120"
                }},
                { no:"4332854178",name:"微雪",model:"4.2inch NFC-Powered e-Paper",state:true,ip:"192.168.1.28"},
                { no:"4332854178",name:"微雪",model:"4.2inch NFC-Powered e-Paper",state:true,ip:"192.168.1.31"},
                { no:"4332854178",name:"微雪",model:"4.2inch NFC-Powered e-Paper",state:true,ip:"192.168.1.45"},
                { no:"5988943192",name:"智能立库",model:"E-W42",state:true,ip:"192.168.1.76"},
                { no:"5988943192",name:"智能立库",model:"E-W42",state:false,ip:"192.168.1.112"},
                { no:"5988943192",name:"智能立库",model:"E-W42",state:true,ip:"192.168.1.156"},
            ]
            localStorage.setItem("equipment", JSON.stringify(equipment))
        }

        function restGood() {
            let good = [
                {}
            ]
        }

        function resrAllData() {
            restSysUser();
            restAreaUser();
            restMap();
            restArea();
            restEquipment()

        }
    </script>
</head>

<body>
    <input type="button" value="重置所有数据" onclick="resrAllData()">
</body>

</html>